/*
 * ProductBO.java
 *
 * Created on March 7, 2007, 1:16 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Data;

/**
 *
 * @author Danny Beutler
 */
public abstract class ProductBO {
    protected String id;
    protected double price;
    protected boolean alreadyInDB=false;
    protected boolean dirty =true;
    /** Creates a new instance of ProductBO */
    public ProductBO(String id) {
        this.id=id;
    }
    
    public ProductBO() {
    }
    
    /** Gets the product GUID */
    public String getId() {
        return id;
    }
    
    /** Gets the product Price */
    public Double getPrice() {
        return price;
    }
    
    /** Sets the product Price */
    public void setPrice(double price){
        this.price = price;
        setDirty(true);
        //no operations at this time
    }
    
    /** Gets the product isAlreadyInDB variable */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }
    
    /** Sets the product isAlreadyInDB variable*/
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
    /** Gets the product dirty variable */
    public boolean isDirty() {
        return dirty;
    }
    
    /** Sets the product dirty variable */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
    
    
    
    
}
